#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

#include <set>

typedef long long ll;

void Test1()
{
    ll a, h, b, k;
    cin >> a >> h >> b >> k;
    ll sum = 0;

    while (h > 0 && k > 0) {
        sum += a + b;
        h -= b;
        k -= a;
    }

    if (h <= 0 && k <= 0) {

    }
    else if (h <= 0) {
        sum += b * 10;
    }
    else {
        sum += a * 10;
    }


    cout << sum;
}

int main1() {
    int a, b, x;
    set<int> s;
    for (int i = 0; i < a; i++)
    {
        cin >> x;
        s.insert(x);
    }

    for (int i = 0; i < b; i++)
    {
        cin >> x;
        s.insert(x);
    }

    for (auto e : s)
    {
        cout << e << " ";
    }
    return 0;
}

void Test2()
{

}

int main()
{

    return 0;
}